﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using CarAppClient.Views.CarType.ViewModels.CarType;
using CarAppClient.Views.RuleConfig.ViewModels.RuleConfig;
using CarAppClient.Views.Sys.ViewModels;
using CarAppDto.Common;

namespace CarAppClient.Views.Rule.Views
{
    /// <summary>
    /// 
    /// </summary>
    public partial class Page_RuleConfig_Modify : Window
    {
        public Page_RuleConfig_Modify(string? id = null, ViewStatus? viewStatus = null)
        {
            InitializeComponent();
            this.DataContext = new RuleConfigModifyViewModel(this, id, viewStatus);
        }

        private void DataGrid_LoadingRow(object sender, DataGridRowEventArgs e)
        {
            e.Row.Header = e.Row.GetIndex() + 1;
        }
    }
}
